<!-- 搜索框及工具条 -->
<div class="c-head-box">
    <form method="get" action="{:Url('insurance_up_list')}">
        <ul>
            <li class="c-head-search">
                <!-- 搜索条件 -->
                <ul>
                    <li><span>保险产品编号：</span><input type="text" name="insurance_product_id" value="{$insurance_product_id}"/></li>
                    <li><span>保险产品名称：</span><input type="text" name="insurance_product_name" value="{$insurance_product_name}"/></li>
                    <li><span>所属机构类型：</span>{:widget('common/Select/select',array('insurance_agency_type','insurance_agency_type',$insurance_agency_type))}</li>
                    <li><span>保险类型：</span>{:widget('common/Select/select',array('insurance_type','insurance_type',$insurance_type))}</li>
                    <li><span>所属机构：</span>{:widget('common/Select/select_parent',array('insurance_agency_id',array($insurance_agency_list,"insurance_agency_id","insurance_agency_name","insurance_agency_type"),'insurance_agency_type',$insurance_agency_id))}</li>
                </ul>
            </li>
            <li class="c-head-button">
                <!-- 操作按钮 -->
                <div class="fr"><input type="submit" class="but_blue" value="搜索"></div>
            </li>
        </ul>
    </form>
</div>

<!--用户列表-->
<div class="lists-tab-cont">
    <div class="lists-table">
        <table class="pointer" cellpadding="0" cellspacing="0" border="0">
            <thead>
            <tr>
                <th style="width: 6%;" class="tabSort-header"><a class="tabSort-header-inner"><p>保险产品编号</p></a></th>
                <th style="width: 8%;" class="tabSort-header"><a class="tabSort-header-inner"><p>保险所属机构名称</p></a></th>
                <th style="width: 10%;" class="tabSort-header"><a class="tabSort-header-inner"><p>产品名称</p></a></th>
                <th style="width: 15%;" class="tabSort-header"><a class="tabSort-header-inner"><p>标签</p></a></th>
                <th style="width: 10%;" class="tabSort-header"><a class="tabSort-header-inner"><p>保险类型</p></a></th>
                <th style="width: 10%;" class="tabSort-header"><a class="tabSort-header-inner"><p>创建时间</p></a></th>
                <th class="tabSort-header"><a class="tabSort-header-inner"><p>操作</p></a></th>
            </tr>
            </thead>
            <tbody>
                {foreach name="insurance_list" item="info"}
                    <tr>
                        <td>{$info.insurance_product_id}</td>
                        <td>{:widget('common/Name/insurance_agency',array($info["insurance_agency_id"]))}</td>
                        <td>{$info.insurance_product_name}</td>
                        <td>{empty name="$info.insurance_tag_str"}--{else/}{$info.insurance_tag_str}{/empty}</td>
                        <td>{:widget('common/Color/color',array('insurance_type',$info['insurance_type']))}</td>
                        <td>{$info.create_time}</td>
                        <td>
                            <a data-type="info-win" data-src="{:Url('insurance_info',array('insurance_product_id'=>$info['insurance_product_id']))}" data-title="详情" data-width="80%" data-height="80%" class="blue">详情</a>
                            <a href="{:Url('insurance_recommend',array('insurance_product_id'=>$info['insurance_product_id']))}" class="blue">推荐保险</a>
                            <a href="{:Url('insurance_down',array('insurance_product_id'=>$info['insurance_product_id']))}" class="blue info1"><font color="red">下架</font></a>
                            <a data-type="info-win" data-src="{:Url('insurance_log',array('insurance_product_id'=>$info['insurance_product_id']))}" data-title="日志" data-width="80%" data-height="80%" class="blue">日志</a>
                        </td>
                    </tr>
                {/foreach}
            </tbody>
        </table>
    </div>

    <!-- 翻页模板 -->
    <div class="page">
        {$Think.config.page_html}
    </div>
</div>

<!-- JS处理 -->
<script language="javascript">
    $(function(){
        //提示信息
        $("a.info1").click(function(){
            if(confirm("您确定要下架该保险吗？")){
                return true;
            }else{
                return false;
            }
        });
    });
</script>